package com.wmh.baseservice.admin.pojo.vo.user;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author 谢骏
 * @date 2023/8/15 14:39
 **/
@Data
@Accessors(chain = true)
public class ResetPwdReqVO {

    @NotNull(message = "未提交管理员主键")
    private Long adId;

    @NotBlank(message = "未提交账号密码")
    @Pattern(regexp = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$",message = "密码必须由数字、字母两种字符组成，长度在6-20位之间")
    private String password;

    @NotBlank(message = "未提交确认密码")
    private String rePassword;
}
